package client;
import gui.Cart_Gui;
import gui.LogIn_GUI;

import java.awt.Dimension;
import java.awt.Toolkit;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.sql.Date;
import java.sql.Time;
import java.util.Calendar;

public class Main 
{
	final public static int DEFAULT_PORT = 5555;
	public static String[] sets = {"jdbc:mysql://localhost/test", "root", "Braude", "d:\\Files"};
	public static String myIP = new String();
	public static String serverIP = "localhost";
	public static LogIn_GUI log = null;
	public static MainScreen main = null;
	public static ClientConsole clie = null;
	public static Catalog catalog = null; 
	public static Cart cart_Control = null; 
	public static Cart_Gui cart = null; 
	public static CustomOrder customOrder = null;
	public static int customId = 0;
	public static int orderId = 0;
	public static Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
	

	public static void main(String[] args) 
	{
		try 
		{
			myIP=(InetAddress.getLocalHost().getHostAddress());
			if(args.length > 0)
				serverIP = args[0];
			else
				serverIP = "localhost";
		} catch (UnknownHostException e) {e.printStackTrace();}
		 
		log = new LogIn_GUI();
	}
}
